﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Windows;

public class Enemy : MonoBehaviour
{
    public GameObject EnemyTree;   

    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
       
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.CompareTag("Player"))
        {
            
            //碰撞后触发死亡动画，重新开始游戏
        }
    }
}
